package com.ecoolex.discount.sales.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DiscountProductVouchersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DiscountProductVouchersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DiscountProductVouchersExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DiscountProductVouchersExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DiscountProductVouchersExample example = new DiscountProductVouchersExample();
        return example.createCriteria();
    }

    public DiscountProductVouchersExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DiscountProductVouchersExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DiscountProductVouchersExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DiscountProductVouchersExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DiscountProductVouchersExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductIdIsNull() {
            addCriterion("discountproductvouchers.ProductId is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("discountproductvouchers.ProductId is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ProductId =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ProductId <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("discountproductvouchers.ProductId >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ProductId >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("discountproductvouchers.ProductId <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ProductId <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("discountproductvouchers.ProductId in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("discountproductvouchers.ProductId not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.ProductId between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.ProductId not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNull() {
            addCriterion("discountproductvouchers.CurrencyType is null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNotNull() {
            addCriterion("discountproductvouchers.CurrencyType is not null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualTo(String value) {
            addCriterion("discountproductvouchers.CurrencyType =", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualTo(String value) {
            addCriterion("discountproductvouchers.CurrencyType <>", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThan(String value) {
            addCriterion("discountproductvouchers.CurrencyType >", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.CurrencyType >=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThan(String value) {
            addCriterion("discountproductvouchers.CurrencyType <", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.CurrencyType <=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CurrencyType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLike(String value) {
            addCriterion("discountproductvouchers.CurrencyType like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotLike(String value) {
            addCriterion("discountproductvouchers.CurrencyType not like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIn(List<String> values) {
            addCriterion("discountproductvouchers.CurrencyType in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotIn(List<String> values) {
            addCriterion("discountproductvouchers.CurrencyType not in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.CurrencyType between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.CurrencyType not between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNull() {
            addCriterion("discountproductvouchers.CounterPrice is null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNotNull() {
            addCriterion("discountproductvouchers.CounterPrice is not null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice =", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice <>", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThan(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice >", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice >=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThan(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice <", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.CounterPrice <=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CounterPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceIn(List<BigDecimal> values) {
            addCriterion("discountproductvouchers.CounterPrice in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotIn(List<BigDecimal> values) {
            addCriterion("discountproductvouchers.CounterPrice not in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountproductvouchers.CounterPrice between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountproductvouchers.CounterPrice not between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNull() {
            addCriterion("discountproductvouchers.RetailPrice is null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNotNull() {
            addCriterion("discountproductvouchers.RetailPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice =", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice <>", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThan(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice >", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice >=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThan(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice <", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discountproductvouchers.RetailPrice <=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.RetailPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceIn(List<BigDecimal> values) {
            addCriterion("discountproductvouchers.RetailPrice in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotIn(List<BigDecimal> values) {
            addCriterion("discountproductvouchers.RetailPrice not in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountproductvouchers.RetailPrice between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountproductvouchers.RetailPrice not between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberIsNull() {
            addCriterion("discountproductvouchers.MaxBuyNumber is null");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberIsNotNull() {
            addCriterion("discountproductvouchers.MaxBuyNumber is not null");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberEqualTo(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber =", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberNotEqualTo(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber <>", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberGreaterThan(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber >", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber >=", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberLessThan(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber <", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberLessThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.MaxBuyNumber <=", value, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.MaxBuyNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberIn(List<Integer> values) {
            addCriterion("discountproductvouchers.MaxBuyNumber in", values, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberNotIn(List<Integer> values) {
            addCriterion("discountproductvouchers.MaxBuyNumber not in", values, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.MaxBuyNumber between", value1, value2, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.MaxBuyNumber not between", value1, value2, "maxBuyNumber");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIsNull() {
            addCriterion("discountproductvouchers.ExpirydateStrategy is null");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIsNotNull() {
            addCriterion("discountproductvouchers.ExpirydateStrategy is not null");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy =", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy <>", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThan(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy >", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy >=", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThan(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy <", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.ExpirydateStrategy <=", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateStrategy <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIn(List<Integer> values) {
            addCriterion("discountproductvouchers.ExpirydateStrategy in", values, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotIn(List<Integer> values) {
            addCriterion("discountproductvouchers.ExpirydateStrategy not in", values, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.ExpirydateStrategy between", value1, value2, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.ExpirydateStrategy not between", value1, value2, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeIsNull() {
            addCriterion("discountproductvouchers.ExpirydateDescribe is null");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeIsNotNull() {
            addCriterion("discountproductvouchers.ExpirydateDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeEqualTo(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe =", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeNotEqualTo(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe <>", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeGreaterThan(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe >", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe >=", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeLessThan(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe <", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeLessThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe <=", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.ExpirydateDescribe <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeLike(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe like", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeNotLike(String value) {
            addCriterion("discountproductvouchers.ExpirydateDescribe not like", value, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeIn(List<String> values) {
            addCriterion("discountproductvouchers.ExpirydateDescribe in", values, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeNotIn(List<String> values) {
            addCriterion("discountproductvouchers.ExpirydateDescribe not in", values, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.ExpirydateDescribe between", value1, value2, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andExpirydateDescribeNotBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.ExpirydateDescribe not between", value1, value2, "expirydateDescribe");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIsNull() {
            addCriterion("discountproductvouchers.FixedStartExpirydate is null");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIsNotNull() {
            addCriterion("discountproductvouchers.FixedStartExpirydate is not null");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate =", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate <>", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThan(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate >", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate >=", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThan(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate <", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedStartExpirydate <=", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedStartExpirydate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIn(List<Date> values) {
            addCriterion("discountproductvouchers.FixedStartExpirydate in", values, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotIn(List<Date> values) {
            addCriterion("discountproductvouchers.FixedStartExpirydate not in", values, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.FixedStartExpirydate between", value1, value2, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.FixedStartExpirydate not between", value1, value2, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIsNull() {
            addCriterion("discountproductvouchers.FixedEndExpirydate is null");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIsNotNull() {
            addCriterion("discountproductvouchers.FixedEndExpirydate is not null");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate =", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate <>", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThan(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate >", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate >=", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThan(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate <", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.FixedEndExpirydate <=", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.FixedEndExpirydate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIn(List<Date> values) {
            addCriterion("discountproductvouchers.FixedEndExpirydate in", values, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotIn(List<Date> values) {
            addCriterion("discountproductvouchers.FixedEndExpirydate not in", values, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.FixedEndExpirydate between", value1, value2, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.FixedEndExpirydate not between", value1, value2, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeIsNull() {
            addCriterion("discountproductvouchers.DynamicExpirydateType is null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeIsNotNull() {
            addCriterion("discountproductvouchers.DynamicExpirydateType is not null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType =", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeNotEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType <>", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeGreaterThan(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType >", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType >=", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeLessThan(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType <", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeLessThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateType <=", value, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeIn(List<Integer> values) {
            addCriterion("discountproductvouchers.DynamicExpirydateType in", values, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeNotIn(List<Integer> values) {
            addCriterion("discountproductvouchers.DynamicExpirydateType not in", values, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.DynamicExpirydateType between", value1, value2, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.DynamicExpirydateType not between", value1, value2, "dynamicExpirydateType");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIsNull() {
            addCriterion("discountproductvouchers.DynamicExpirydateValue is null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIsNotNull() {
            addCriterion("discountproductvouchers.DynamicExpirydateValue is not null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue =", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue <>", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThan(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue >", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue >=", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThan(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue <", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanOrEqualTo(Integer value) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue <=", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.DynamicExpirydateValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIn(List<Integer> values) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue in", values, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotIn(List<Integer> values) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue not in", values, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue between", value1, value2, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotBetween(Integer value1, Integer value2) {
            addCriterion("discountproductvouchers.DynamicExpirydateValue not between", value1, value2, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("discountproductvouchers.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("discountproductvouchers.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("discountproductvouchers.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("discountproductvouchers.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("discountproductvouchers.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("discountproductvouchers.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("discountproductvouchers.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("discountproductvouchers.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("discountproductvouchers.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("discountproductvouchers.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("discountproductvouchers.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("discountproductvouchers.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("discountproductvouchers.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("discountproductvouchers.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("discountproductvouchers.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("discountproductvouchers.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("discountproductvouchers.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("discountproductvouchers.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("discountproductvouchers.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("discountproductvouchers.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("discountproductvouchers.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("discountproductvouchers.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("discountproductvouchers.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("discountproductvouchers.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("discountproductvouchers.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("discountproductvouchers.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("discountproductvouchers.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("discountproductvouchers.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("discountproductvouchers.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("discountproductvouchers.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("discountproductvouchers.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("discountproductvouchers.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("discountproductvouchers.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("discountproductvouchers.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("discountproductvouchers.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("discountproductvouchers.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("discountproductvouchers.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("discountproductvouchers.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("discountproductvouchers.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("discountproductvouchers.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("discountproductvouchers.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("discountproductvouchers.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("discountproductvouchers.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("discountproductvouchers.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("discountproductvouchers.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("discountproductvouchers.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("discountproductvouchers.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("discountproductvouchers.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountproductvouchers.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DiscountProductVouchers.Column column) {
            addCriterion(new StringBuilder("discountproductvouchers.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("discountproductvouchers.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("discountproductvouchers.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountproductvouchers.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DiscountProductVouchersExample example;

        protected Criteria(DiscountProductVouchersExample example) {
            super();
            this.example = example;
        }

        public DiscountProductVouchersExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DiscountProductVouchers.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DiscountProductVouchers.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.discount.sales.entity.DiscountProductVouchersExample example);
    }
}